package com.changanw.tienchin.channel.domain.vo;


import com.changanw.tienchin.common.core.domain.BaseEntity;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author changanw
 * @description
 * @date 2023/11/17 13:12
 */
public class ChannelVo extends BaseEntity {

  private Integer channelId;

  /**
   * 渠道名称
   */
  @NotBlank(message = "{channel.name.notnull}")
  private String channelName;

  /**
   * 渠道状态
   */
  @Max(value = 1,message = "渠道状态非法")
  @Min(value = 0,message = "渠道状态非法")
  @NotNull(message = "渠道状态不能为空")
  private Byte status;


  /**
   * 渠道类型：1、线上2、线下
   */
  @Max(value = 2,message = "渠道类型非法")
  @Min(value = 1,message = "渠道类型非法")
  @NotNull(message = "渠道类型不能为空")
  private Integer type;

  /**
   * 删除标志
   */
  private Integer delFlag;

  public Integer getChannelId() {
    return channelId;
  }

  public void setChannelId(Integer channelId) {
    this.channelId = channelId;
  }

  public String getChannelName() {
    return channelName;
  }

  public void setChannelName(String channelName) {
    this.channelName = channelName;
  }

  public Byte getStatus() {
    return status;
  }

  public void setStatus(Byte status) {
    this.status = status;
  }



  public Integer getType() {
    return type;
  }

  public void setType(Integer type) {
    this.type = type;
  }


  public Integer getDelFlag() {
    return delFlag;
  }

  public void setDelFlag(Integer delFlag) {
    this.delFlag = delFlag;
  }
}
